<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
    <body>
        <ui:composition>
            <h:outputStylesheet library="css" name="header/header.css"></h:outputStylesheet>
            <h:outputStylesheet library="css" name="header/header_desktop.css" media="screen and (min-width:1025px) and (max-width:1600px)"></h:outputStylesheet>
            <h:outputStylesheet library="css" name="header/header_desktop_wide.css" media="screen and (min-width : 1601px)"></h:outputStylesheet>
            <h:outputStylesheet library="css" name="header/header_tablet.css" media="screen and (min-device-width : 768px) and (max-device-width : 1024px), screen and (max-width:1024px)"></h:outputStylesheet>
            <h:outputStylesheet library="css" name="header/header_smartphone.css" media="screen and (min-device-width : 320px) and (max-device-width : 767px), screen and (max-width:767px)"></h:outputStylesheet>
            
            <h:form styleClass="noWhiteForm noSmartphone marginBottom1em" id="headerForm">
                <p:growl id="growl"/>
                <p:commandLink styleClass="logoLink inlineBlock" action="#{loginBean.goIndex()}">
                    <h:graphicImage styleClass="width100 inlineBlock" alt="TheRecruitery. Tu portal de empleo cara al público" library="images" name="logo.png"></h:graphicImage>
                </p:commandLink>
                <p:panel id="loggedinPanel" styleClass="inlineBlock textAlignRight loggedInPanel">
                    <h:outputText id="nameCandidate" styleClass="colorGrey bodyFont" value="#{loginBean.logedCompany().name}, " rendered="#{loginBean.logedCompany().name!=null}"></h:outputText>
                    <h:outputText id="emailCandidate" styleClass="colorGrey bodyFont" value="#{loginBean.logedCompany().idUser.email}, " rendered="#{loginBean.logedCompany().name==null}"></h:outputText>
                    <p:commandLink ajax="false" value="#{messages.Logout}" action="#{loginBean.logout()}"></p:commandLink>
                </p:panel>
                
            </h:form>
        </ui:composition>
    </body>
</html>

